-- GENERATED SPELL FOR [Keeper Remulos] --


function spell0_11832(pUnit, Event) --@Conjure Dream Rift,Self--
pUnit:FullCastSpellOnTarget(25813,pUnit)
pUnit:RegisterEvent('Sorts_11832', 10000, 1)
end

function spell1_11832(pUnit, Event) --@Fitful Dream,n/a--
pUnit:FullCastSpellOnTarget(57413,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11832', 100, 1)
end

function spell2_11832(pUnit, Event) --@Healing Touch,Heal--
pUnit:FullCastSpellOnTarget(23381,pUnit)
pUnit:RegisterEvent('Sorts_11832', 3000, 1)
end

function spell3_11832(pUnit, Event) --@Regrowth,n/a--
pUnit:FullCastSpellOnTarget(20665,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11832', 23000, 1)
end

function spell4_11832(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(20664,pUnit)
pUnit:RegisterEvent('Sorts_11832', 12000, 1)
end

function spell5_11832(pUnit, Event) --@Starfire,n/a--
pUnit:FullCastSpellOnTarget(21668,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11832', 2000, 1)
end

function spell6_11832(pUnit, Event) --@Throw Nightmare Object,n/a--
pUnit:FullCastSpellOnTarget(25004,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11832', 2000, 1)
end

function Sorts_11832(pUnit, Event)
local choix_sorts_11832 = math.random(0, 6)
if choix_sorts_11832 == 0 then
pUnit:RegisterEvent('spell0_11832', 1, 1)
end
if choix_sorts_11832 == 1 then
pUnit:RegisterEvent('spell1_11832', 1, 1)
end
if choix_sorts_11832 == 2 then
pUnit:RegisterEvent('spell2_11832', 1, 1)
end
if choix_sorts_11832 == 3 then
pUnit:RegisterEvent('spell3_11832', 1, 1)
end
if choix_sorts_11832 == 4 then
pUnit:RegisterEvent('spell4_11832', 1, 1)
end
if choix_sorts_11832 == 5 then
pUnit:RegisterEvent('spell5_11832', 1, 1)
end
if choix_sorts_11832 == 6 then
pUnit:RegisterEvent('spell6_11832', 1, 1)
end
end

function mob11832_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11832', math.random(1500, 3000), 1)
end

function mob11832_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11832_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11832_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11832, 1, 'mob11832_Action')
RegisterUnitEvent(11832, 2, 'mob11832_Leave')
RegisterUnitEvent(11832, 3, 'mob11832_Kill')
RegisterUnitEvent(11832, 4, 'mob11832_Die')
